package com.ztatic.fightmode;

import com.ztatic.fightmode.R;
import com.ztatic.fightmode.control.ScreenHandler;
import com.ztatic.fightmode.control.ScreenHandler.Screens;
import com.ztatic.fightmode.views.IntroScreen;
import com.ztatic.fightmode.views.LogoScreen;
import com.ztatic.fightmode.views.MainmenuScreen;

import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;

public class MainActivity extends Activity{
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        //Fullscreen, no title
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
        		WindowManager.LayoutParams.FLAG_FULLSCREEN);
        
        ScreenHandler _handler = new ScreenHandler(this);
        _handler.init();
        _handler.requestScreenChange(Screens.LOGO);
        
        //setContentView(new IntroScreen(this));
    }
    
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }

    /*
    public class MainLooper extends Thread
    {
    	
    	public Handler handler;
    	public void run()
    	{
    		Looper.prepareMainLooper();
    		
    		handler = new Handler()
    		{
    			public void handleMessage(Message msg)
    			{
    			}
    		};
    		
    		Looper.loop();
    	}
    }*/
}
